package com.geeksx.trainer.service;


import com.geeksx.trainer.entity.request.PracticeStartRequest;
import com.geeksx.trainer.entity.request.PracticeSubmitRequest;
import com.geeksx.trainer.entity.vo.QuestionVO;

import java.util.List;
import java.util.Map;

/**
 * 答题练习服务
 */
public interface PracticeService {

    /**
     * 开始答题
     *
     * @param request
     * @return
     */
    List<QuestionVO> startPractice(PracticeStartRequest request);

    /**
     * 获取推荐题目
     *
     * @return
     */
    QuestionVO getRecommendQuestion(PracticeStartRequest request);

    Map<String, Object> submitAnswer(PracticeSubmitRequest request);

    Map<String, Object> getHistory(Long userId, Long studyModeId);


}
